import java.util.Scanner;

public class MinutesToYearsDays {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入分钟数：");
        long minutes = input.nextLong();
        long days = minutes / 60 / 24;
        long years = days / 365;
        long remainingDays = days % 365;
        System.out.printf("%d 分钟约等于 %d 年 %d 天%n",
                          minutes, years, remainingDays);
        input.close();
    }
}